<include file="__PUBLIC__/head.html"/>
<css file="__PUBLIC__/css/category.css"/>
<script>
    $(function(){
        $(".selecttpl").click(function(){
            $.post("__CONTROL__/select_tpl", function(mgs){
                var data = eval(mgs)
                $(".choose").show().css({top:top,left:left})
            })
        })
    })
</script>
</head>
<body>
    <form action="__CONTROL__/add" method="post">
        <div class="content add_show">
            <input type="hidden" name="cat_pid" value="{$hd.get.cat_pid}"/>
            <h2>基本设置</h2>
            <table class="table1">
                <tr>
                    <th>栏目名称</th>
                    <td>
                        <input type="text" name="cat_name"/>
                    </td>
                </tr>
                <tr>
                    <th>列表模板</th>
                    <td>
                        <select>
                            <option>=请选择列表页模板=</option>
                            <list from="$filename" name="$c">
                            <option value="{$c.name}">{$c.name}</option>
                            </list>
                        </select>
                    </td>
                </tr>
                <tr>
                    <th>内容页</th>
                    <td>
                        <select>
                            <option>=请选择内容页模板=</option>
                            <list from="$filename" name="$c">
                            <option value="{$c.name}">{$c.name}</option>
                            </list>
                        </select>
                    </td>
                </tr>
            </table>
            <h2>SEO设置</h2>
            <table class="table1">
                <tr>
                    <th>关键字</th>
                    <td>
                        <input type="text" name="keywords"/>
                    </td>
                </tr>
                <tr>
                    <th>描述</th>
                    <td>
                        <textarea cols="50" row="8" name="description"></textarea>
                    </td>
                </tr>
            </table>
            <div>
                <input type="submit" value="添加栏目"/>
            </div>
        </div>
    </form>
    
</body>
</html>